package test.noah.chery.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import test.noah.chery.entity.Login;
import test.noah.chery.mapper.LoginMapper;

@Repository
public class LoginDaoImpl implements LoginDao{
	
	@Autowired
	private LoginMapper loginmapper;

	public  List<Login> getList() throws DataAccessException {
		return loginmapper.getListBylogin();
	}

	public Login getLogin(Login login) throws DataAccessException {
		return loginmapper.selectLogin(login);
	}

}
